#!/GPUFS/app_GPU/application/anaconda3/5.3.1/envs/python-3.6/bin/python

import random
from scoop import futures
data = [random.randint(-1000, 1000) for r in range(1000)]

if __name__ == '__main__':
    # Python's standard serial function
    dataSerial = list(map(abs, data))

    # SCOOP's parallel function
    dataParallel = list(futures.map(abs, data))
    print(dataParallel)
    assert dataSerial == dataParallel

